<?php
// +----------------------------------------------------------------------
// | Author: weifashi <605403358@qq.com>
// +----------------------------------------------------------------------	

	
//---------------------------
//-----系统机制路由-------
//---------------------------
Route::group(['method' => 'get'],function () {
	Route::alias('layout','admin/soft.index/index');
    Route::alias('modules','admin/soft.index/index');
	Route::alias('system','admin/soft.index/index');
	Route::alias('systemSheet','admin/soft.index/index');
	Route::alias('__PUBLIC__','admin/soft.index/index');
	Route::alias('__public__','admin/soft.index/index');
	Route::alias('__ROOT__','admin/soft.index/index');
	Route::alias('__root__','admin/soft.index/index');
});


//---------------------------
//---------组件路由--------
//---------------------------
Route::group('admin/core', function () {
	Route::group('search', function () {
		Route::any('getOption' ,'\soft\Controls@getSearchConfig')->name('获取配置');
	});
	Route::group('grid', function () {
	    Route::any('getOption' ,'\soft\Controls@getGridConfig')->name('获取配置');
	    Route::any('getData', '\soft\Controls@getGridData')->name("获取数据");
	    Route::any('deleteData', '\soft\Controls@deleteGridData')->name("删除数据");
	    Route::any('adjustSort', '\soft\Controls@adjustSort')->name("调整排序");
	    Route::any('exportExcel', '\soft\Controls@exportExcel')->name("导出数据");
	    Route::any('updateField', '\soft\Controls@updateField')->name("更新字段值");
	    Route::any('updateRow', '\soft\Controls@updateRow')->name("更新字段值");
	});
	Route::group('form', function () {
		Route::any('getOption' ,'\soft\Controls@getFormConfig')->name('获取配置');
		Route::any('saveData' ,'\soft\Controls@saveFormData')->name('保存数据');
	});
})->middleware('AuthTokenWeb');